.class Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity$37;->onComplete(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

.field final synthetic val$platform:Lcn/sharesdk/framework/Platform;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$37;Lcn/sharesdk/framework/Platform;)V
    .registers 3
    .param p1, "this$1"    # Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

    .prologue
    .line 1932
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->val$platform:Lcn/sharesdk/framework/Platform;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 7

    .prologue
    .line 1936
    sget-object v0, Lcn/sharesdk/sina/weibo/SinaWeibo;->NAME:Ljava/lang/String;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->val$platform:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v1}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_47

    invoke-static {}, Lcom/brixd/niceapp/service/UserService;->isUserLogin()Z

    move-result v0

    if-nez v0, :cond_47

    .line 1937
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    const/4 v1, 0x0

    # setter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mClickedView:Landroid/view/View;
    invoke-static {v0, v1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1802(Lcom/brixd/niceapp/activity/BaseDetailActivity;Landroid/view/View;)Landroid/view/View;

    .line 1938
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/brixd/niceapp/service/LoginService$SNSPlatform;->Weibo:Lcom/brixd/niceapp/service/LoginService$SNSPlatform;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->val$platform:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v2}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v2

    invoke-virtual {v2}, Lcn/sharesdk/framework/PlatformDb;->getUserId()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->val$platform:Lcn/sharesdk/framework/Platform;

    invoke-virtual {v3}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v3

    invoke-virtual {v3}, Lcn/sharesdk/framework/PlatformDb;->getToken()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->val$platform:Lcn/sharesdk/framework/Platform;

    .line 1939
    invoke-virtual {v4}, Lcn/sharesdk/framework/Platform;->getDb()Lcn/sharesdk/framework/PlatformDb;

    move-result-object v4

    invoke-virtual {v4}, Lcn/sharesdk/framework/PlatformDb;->getExpiresTime()J

    move-result-wide v4

    .line 1938
    invoke-static/range {v0 .. v5}, Lcom/brixd/niceapp/service/LoginService;->signupUser(Landroid/content/Context;Lcom/brixd/niceapp/service/LoginService$SNSPlatform;Ljava/lang/String;Ljava/lang/String;J)V

    .line 1942
    :cond_47
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37$1;->this$1:Lcom/brixd/niceapp/activity/BaseDetailActivity$37;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity$37;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v0

    const v1, 0x7f0c00f4

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 1943
    return-void
.end method
